public interface PrinterObserver
Modifier and Type | Method and Description |
---|---|
void |
printerObserverCallback(PrinterInterface printerInterface,
int conState)
连接状态回调
Connection state callback |
void |
printerReadMsgCallback(PrinterInterface printerInterface,
byte[] btMsgs)
Just support Bluetooth and Wifi so far.
Return the byte array from printer. |
void printerObserverCallback(PrinterInterface printerInterface, int conState)
printerInterface
- 连接的配置信息(printerInterface.getConfigObject == 如WiFi: WiFiConfigBean)conState
- 状态
连接成功:CONNECT_STATE_SUCCESS,
连接中断:CONNECT_STATE_INTERRUPTEDvoid printerReadMsgCallback(PrinterInterface printerInterface, byte[] btMsgs)
printerInterface
- btMsgs
- byte[]